#version 400 core
layout (triangles) in;
layout (line_strip, max_vertices = 3) out;

in TE_OUT
{
    vec4 color;
    vec3 normal;
} gs_in[];

out GS_OUT
{
    vec4 color;
    vec3 normal;
} gs_out;

void main()
{
    for(int i=0;i<gs_in.length();i++)
    {
        gs_out.color = gs_in[i].color;
        gs_out.normal = gs_in[i].normal;

        gl_Position = gl_in[i].gl_Position;
        EmitVertex();
    }
    EndPrimitive();
}

